<?php
class Merchant_Service_OrderProduct
{

    public static function add($row){
        $shipTypeObj = new Merchant_Model_OrderProduct();
        return $shipTypeObj->add($row);
	}

	public static function update($row,$value,$field='op_id'){
        $shipTypeObj = new Merchant_Model_OrderProduct();
        return $shipTypeObj->update($row,$value,$field);
	}


	public static function delete($value,$field='op_id'){
        $shipTypeObj = new Merchant_Model_OrderProduct();
        return $shipTypeObj->delete($value,$field);

	}


	public static function getByValue($value,$field='op_id'){
        $shipTypeObj = new Merchant_Model_OrderProduct();
        return $shipTypeObj->getByValue($value,$field);
	}

    public static function getByCondition($condition,$type='*',$orderby="",$page=0,$pageSize=0){
        $shipTypeObj = new Merchant_Model_OrderProduct();
        return $shipTypeObj->getByCondition($condition,$type,$orderby,$page,$pageSize);
	}
}